package com.esoon.controller;

import com.esoon.service.CsrLeaveMessageService;
import com.esoon.service.impl.CsrLeaveMessageServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName CsrLeaveMessageController
 * @Description TODO 留言接口
 * @Author 2020/10/15 16:01
 * @Version 1.0
 **/
@RestController
@RequestMapping("/v1/CsrLeaveMessage")
public class CsrLeaveMessageController {

    private static final Logger logger;

    static {
        logger = LoggerFactory.getLogger(CsrLeaveMessageController.class);
    }

    @Resource
    private CsrLeaveMessageService csrLeaveMessageService;
    @RequestMapping(value = "/insert" , method = RequestMethod.GET)
    public String insert(@RequestParam String ani, @RequestParam String msgPath,@RequestParam String tenantCode,@RequestParam  String LM_NODE){
        logger.info("invoking LeaveMessage interface , the url = '/v1/CsrLeaveMessage/insert', the requestParam :  ani = [{}],msgPath = [{}],tenantCode = [{}],LM_NODE = [{}]",ani,msgPath,tenantCode,LM_NODE);
       return csrLeaveMessageService.insert(ani, msgPath,tenantCode,LM_NODE);
    }
}
